package master.photo.controller

import master.photo.domain.Photo;

class ImageController {
	
	def show = {
		def persistedPhoto = Photo.get(params.id);
		
		if (persistedPhoto) {
			response.outputStream << persistedPhoto.photo;
		}
	}
	
}
